package main1.r_ChainOfResponsibilityModel;

/**
 * Created by newtranx_011 on 2017/9/26.
 */
public class Abc extends Ab implements A {
    private String name;

    public Abc(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void o() {
        System.out.println(this.name+":::");
        if(null !=getA()){
            getA().o();
        }
    }
}
